#include <iostream>
#include <cmath>
#include <ctime>
#include <windows.h>
using namespace std;

#define T 20000
#define C 100
#define PI 3.1415


unsigned int test()
{
	unsigned int c = 0xFFFFFFFF;
	time_t t1,t2;
	time(&t1);

	for(unsigned int i = 0; i < c; i++)
		;
	time(&t2);
	return (unsigned int)(t2-t1);
}

unsigned int countss = 0xFFFFFFFF / (test() * 1000);

const unsigned int N = T/C;
unsigned int v[N] = {0};
unsigned int mt[N] = {0};

int main8()
{
	for(int i = 0;i< N; i++)
	{
		double x = 2*PI*i/N;
		double r = (sin(x) + 1)/2;

		mt[i] = C - r*C;
		v[i] = r*C*countss;
	}
	for(;;)
	{
		for(int i =0; i < N;i++)
		{
			for(int j=0;j<v[i];j++)
				;
			Sleep(mt[i]);
		}
	}
}